package top.littleze.aiattendance.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.littleze.aiattendance.entity.AttendanceLogEntity;

import java.util.List;

@Mapper
public interface AttendanceLogEntityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AttendanceLogEntity record);

    int insertSelective(AttendanceLogEntity record);

    AttendanceLogEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AttendanceLogEntity record);

    int updateByPrimaryKey(AttendanceLogEntity record);





    List<AttendanceLogEntity> queryAttendanceReport(@Param("studentId") String studentId);

    Boolean queryExistAttendanceLog(@Param("courseId") String courseId);

    List<AttendanceLogEntity> queryAttendance(@Param("courseId") String courseId);


}